<template>
  <div class="div-wrapper">
    <div class="div-title">{{title}}</div>
    <div class="div-value">{{value}}</div>
  </div>
</template>

<script>
export default {
  props: {
    title: {
      type: String,
      required: true,
    },
    value: {
      type: [String, Number],
      required: true,
    },
  },
};
</script>

<style scoped>
.div-title {
  color: rgba(0, 0, 0, 0.5);
  font-weight: bold;
  text-align: center;
  padding-bottom: 0.5em;
}
.div-value {
  font-size: 3em;
  font-weight: bold;
  text-align: center;
}
.div-wrapper {
  transition: all 0.25s;
}
.div-wrapper:hover {
  transform: scale(1.1);
}
</style>